package com.mmall.param;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Author wangtengyu
 * @Create 2018-03-06-19:33
 */
@Getter
@Setter
public class TestVo {

    @NotNull
    private String msg;

    @NotNull(message = "id怎么能为空呢")
    @Max(value = 10,message = "不能大于10!")
    @Min(value = 0,message = "")
    private Integer id;
}
